package ods_log

import (
	"github.com/gin-gonic/gin"
	"server/middleware"
)

type OdsDbSyncLogRouter struct {
}


func (s *OdsDbSyncLogRouter) InitOdsDbSyncLogRouter(Router *gin.RouterGroup) {
	odsDbSyncLogRouter := Router.Group("odsDbSyncLog").Use(middleware.OperationRecord())
	odsDbSyncLogRouterWithoutRecord := Router.Group("odsDbSyncLog")
	var odsDbSyncLogApi = OdsDbSyncLogApi{}
	{
		odsDbSyncLogRouter.POST("createOdsDbSyncLog", odsDbSyncLogApi.CreateOdsDbSyncLog)
		odsDbSyncLogRouter.DELETE("deleteOdsDbSyncLog", odsDbSyncLogApi.DeleteOdsDbSyncLog)
		odsDbSyncLogRouter.DELETE("deleteOdsDbSyncLogByIds", odsDbSyncLogApi.DeleteOdsDbSyncLogByIds)
		odsDbSyncLogRouter.PUT("updateOdsDbSyncLog", odsDbSyncLogApi.UpdateOdsDbSyncLog)
	}
	{
		odsDbSyncLogRouterWithoutRecord.GET("findOdsDbSyncLog", odsDbSyncLogApi.FindOdsDbSyncLog)
		odsDbSyncLogRouterWithoutRecord.GET("getAllOdsDbSyncLogs", odsDbSyncLogApi.GetAllOdsDbSyncLogs)
		odsDbSyncLogRouterWithoutRecord.GET("getOdsDbSyncLogList", odsDbSyncLogApi.GetOdsDbSyncLogList)
	}
}
